"""
@Date:2022/8/9
@author:Jingyu
@Description：新增测试Demo：
@other：
"""

from frameworkTest.FrameworkByAdd import FrameworkByAdd
class SmsLawByAdd(object):
    frameworkByAdd = FrameworkByAdd()
    def add(self,driver,title):
        self.frameworkByAdd.add(driver,title)
        # 进行拆分调用别的方法

    def titleOption(self,driver,title):
        # 取出下拉框的数据
        xpath = title['option']['xpath']
        ulXpath = title['option']['ulXpath']
        text = title['option']['text']
        self.frameworkByAdd.liReadByOption(driver,xpath,ulXpath,text)
        xpath2 = title['option2']['xpath']
        ulXpath2 = title['option2']['ulXpath']
        text2 = title['option2']['text']
        self.frameworkByAdd.liReadByOption(driver, xpath2, ulXpath2, text2)
        self.frameworkByAdd.save(driver,title)
